module.exports = {
  // 后端配置
  backend: {
    port: process.env.BACKEND_PORT || 5000,
    mongoUri: process.env.MONGO_URI || 'mongodb://localhost:27017/photo-album',
    uploadDir: process.env.UPLOAD_DIR || 'uploads',
    host: process.env.BACKEND_HOST || '0.0.0.0'
  },
  // 前端配置
  frontend: {
    port: process.env.FRONTEND_PORT || 3000,
    apiUrl: process.env.PUBLIC_IP ? `http://${process.env.PUBLIC_IP}:${process.env.BACKEND_PORT || 5000}` : 'http://localhost:5000',
    host: process.env.FRONTEND_HOST || '0.0.0.0'
  }
}; 